strncpy(buff, origin, sizeof(buff));
src = lrtrim(buff);
- for (c = src; *c; c++) *c = toupper(*c);
+ for (c = src; *c; c++) {
+ *c = toupper(*c);
+ }
Y = 0;
prev = '\0';
while ((str = csv_lineparse(NULL, "\t", "", column++))) {
header_lines[unknown_header][column] = xstrdup(str);
- str = header_lines[unknown_header][column];
- while (*str) *str++ = toupper(*str);
+ for (str = header_lines[unknown_header][column]; *str; str++) {
+ *str = toupper(*str);
+ }
header_ct[unknown_header]++;
if (header_ct[unknown_header] >= MAX_HEADER_FIELDS) break;
}
fields = xmalloc(i + 2);
strcpy(fields, headers[ht]);
strcat(fields, "\t");
- c = fields;
- while (*c) *c++ = toupper(*c);
+ for (c = fields; *c; c++) {
+ *c = toupper(*c);
+ }
c = fields;
while ((c = strchr(c, '\t'))) *c++ = '\0';